<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.core.Traits</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.core.Traits";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.core.Traits.html" class="symbol">tango.core.Traits</a></h1>
  
<div class="summary">The traits module defines tools useful for obtaining detailed compile-time
 information about a type.  Please note that the mixed naming scheme used in
 this module is intentional.  Templates which evaluate to a type follow the
 naming convention used for types, and templates which evaluate to a value
 follow the naming convention used for functions.</div>
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Authors:</p>Sean Kelly
<dl>
<dt class="decl">template <a class="symbol _template" name="isCharType" href="./htmlsrc/tango.core.Traits.html#L18" kind="template" beg="18" end="23">isCharType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isCharType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L18">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is char, wchar, or dchar.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isSignedIntegerType" href="./htmlsrc/tango.core.Traits.html#L29" kind="template" beg="29" end="36">isSignedIntegerType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isSignedIntegerType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L29">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a signed integer type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isUnsignedIntegerType" href="./htmlsrc/tango.core.Traits.html#L42" kind="template" beg="42" end="49">isUnsignedIntegerType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isUnsignedIntegerType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L42">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is an unsigned integer type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isIntegerType" href="./htmlsrc/tango.core.Traits.html#L55" kind="template" beg="55" end="59">isIntegerType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isIntegerType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L55">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a signed or unsigned integer type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isRealType" href="./htmlsrc/tango.core.Traits.html#L65" kind="template" beg="65" end="70">isRealType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isRealType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L65">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a real floating-point type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isComplexType" href="./htmlsrc/tango.core.Traits.html#L76" kind="template" beg="76" end="81">isComplexType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isComplexType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L76">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a complex floating-point type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isImaginaryType" href="./htmlsrc/tango.core.Traits.html#L87" kind="template" beg="87" end="92">isImaginaryType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isImaginaryType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L87">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is an imaginary floating-point type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isFloatingPointType" href="./htmlsrc/tango.core.Traits.html#L99" kind="template" beg="99" end="104">isFloatingPointType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isFloatingPointType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L99">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is any floating-point type: real, complex, or
 imaginary.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isPointerType" href="./htmlsrc/tango.core.Traits.html#L110" kind="template" beg="110" end="113">isPointerType</a><span class="tparams">(T)</span>; <a title="Permalink to this symbol" href="#isPointerType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L110">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a pointer type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isReferenceType" href="./htmlsrc/tango.core.Traits.html#L157" kind="template" beg="157" end="164">isReferenceType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isReferenceType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L157">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a a pointer, class, interface, or delegate.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isDynamicArrayType" href="./htmlsrc/tango.core.Traits.html#L170" kind="template" beg="170" end="173">isDynamicArrayType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isDynamicArrayType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L170">#</a></dt>
<dd class="ddef">
<div class="summary">Evaulates to true if T is a dynamic array type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isAssocArrayType" href="./htmlsrc/tango.core.Traits.html#L231" kind="template" beg="231" end="234">isAssocArrayType</a><span class="tparams">(T )</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#isAssocArrayType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L231">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is an associative array type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="isCallableType" href="./htmlsrc/tango.core.Traits.html#L241" kind="template" beg="241" end="247">isCallableType</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#isCallableType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L241">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to true if T is a function, function pointer, delegate, or
 callable object.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="ReturnTypeOf" href="./htmlsrc/tango.core.Traits.html#L253" kind="template" beg="253" end="259">ReturnTypeOf</a><span class="tparams">(Fn )</span>; <a title="Permalink to this symbol" href="#ReturnTypeOf" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L253">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to the return type of Fn.  Fn is required to be a callable type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="ReturnTypeOf:2" href="./htmlsrc/tango.core.Traits.html#L265" kind="template" beg="265" end="271">ReturnTypeOf</a><span class="tparams">(alias fn )</span>; <a title="Permalink to this symbol" href="#ReturnTypeOf:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L265">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to the return type of fn.  fn is required to be callable.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="ParameterTupleOf" href="./htmlsrc/tango.core.Traits.html#L278" kind="template" beg="278" end="288">ParameterTupleOf</a><span class="tparams">(Fn )</span>; <a title="Permalink to this symbol" href="#ParameterTupleOf" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L278">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to a tuple representing the parameters of Fn.  Fn is required to
 be a callable type.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="ParameterTupleOf:2" href="./htmlsrc/tango.core.Traits.html#L295" kind="template" beg="295" end="301">ParameterTupleOf</a><span class="tparams">(alias fn )</span>; <a title="Permalink to this symbol" href="#ParameterTupleOf:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L295">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to a tuple representing the parameters of fn.  n is required to
 be callable.</div>
</dd>
<dt class="decl">template <a class="symbol _template" name="BaseTypeTupleOf" href="./htmlsrc/tango.core.Traits.html#L308" kind="template" beg="308" end="314">BaseTypeTupleOf</a><span class="tparams">(T )</span>; <a title="Permalink to this symbol" href="#BaseTypeTupleOf" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.Traits.html#L308">#</a></dt>
<dd class="ddef">
<div class="summary">Evaluates to a tuple representing the ancestors of T.  T is required to be
 a class or interface type.</div>
</dd></dl>
</div>
<div id="footer">
  <p>Copyright (C) 2005-2006 Sean Kelly.  All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:04 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>